package com.listeningframework.boot.autoconfigure.orm.jpa;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.listeningframework.boot.BootApplication;

/**
 * JPA Scanner Configuration
 * @author lixining
 * @version $Id: ListeningJpaAutoConfiguration.java, v 0.1 2015年8月11日 下午2:37:38 lixining Exp $
 */
@Configuration
@EnableTransactionManagement
@ConditionalOnClass(JpaRepository.class)
@EntityScan({ BootApplication.LISTENING_BOOT, BootApplication.LISTENING_WORKS })
@EnableJpaRepositories({ BootApplication.LISTENING_BOOT, BootApplication.LISTENING_WORKS })
public class ListeningJpaConfiguration {

}
